import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/business/mine/controller/garage_main_controller.dart';
import 'package:dmz/business/mine/widget/garage_widgets.dart';
import 'package:flutter/cupertino.dart';
import 'package:get/get.dart';

class GaragePage extends BaseStatefulWidget<GarageController> {
  const GaragePage({super.key});

  @override
  bool showTitleBar() => false;

  @override
  Widget buildContent(BuildContext context) {
    return Column(children: [
      Obx(() => GarageWidgets.garageMainTopWidget(controller.selectIndex.value,
          controller.changePage, controller.addMoto)),
      Expanded(
          child: GarageWidgets.contentWidget(controller.motoList,
              controller.motoSelect, controller.pageController))
    ]);
  }
}
